/*
 * token.cpp
 *
 *  Created on: 07.04.2010
 *      Author: Florian Gref
 */

#include "token.h"
#include <iostream>

using namespace std;

token::token(tokentype type, int line, int column, char* lexem) {
	this->type = type;
	this->line = line;
	this->column = column;
	this->lexem = lexem;

	 //cout <<  "Token Type " << type <<  " Zeile " << line<< " Collum "<< column << endl;
/*
	for(int i=0; !lexem[i]=='\0'; i++){
		cout << lexem[i] ;
	}

	cout << endl;

	*/
}

token::token(tokentype type, int line, int column){
	this->type = type;
	this->line = line;
	this->column = column;

	// cout <<  "Token Type " << type <<  " Zeile  " << line<< " Collum  "<< column << endl;
}

token::token(tokentype type, int line, int column, long wert){
	this->type = type;
	this->line = line;
	this->column = column;
	this->wert = wert;

	 //cout <<  "Token Type Int " << type <<  " Zeile " << line<< " Collum "<< column << " Intwert " << wert <<endl;
}

tokentype token::getTyp() {
	return this->type;
}
int token::getLine() {
	return this->line;
}
int token::getColumn() {
	return this->column;
}
char* token::getLexem() {
	return this->lexem;
}
long token::getWert(){
	return this->wert;
}
token::~token() {
	// TODO Auto-generated destructor stub
}
